<?php
	$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');
	$glb_uri = '';
	
	if (trim($path, '/') != '' && $path != '/index.php') {
		$glb_uri = array();
		foreach (explode('/', preg_replace("|/*(.+?)/*$|", "\\1", $path)) as $val) {
			if ($val != '')
				$glb_uri[] = $val;
		}
	}
?>